<%@ page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/page/inc/taglib.jsp"%>
<div class="pageContent">
	<form method="post" enctype="multipart/form-data"  action="${pageContext.request.contextPath}${requestScope.record ==null ?'/merchantSetting/merchantAsset/insert' :'/merchantSetting/merchantAsset/update' }" class="pageForm required-validate" onsubmit="return iframeCallback(this, dialogAjaxDone);">
		<div class="pageFormContent" layoutH="56">
			<!-- 关闭窗口 -->
			<input type="hidden" name="callbackType" value="closeCurrent" />
			<!-- 隐藏表单 -->
			<c:if test="${requestScope.record !=null}">
				<input type="hidden" name="merchantAssetId" value="${requestScope.record.merchantAssetId}" />

			</c:if>
			<p>
				<label>分组</label> 
				<select class="combox" name="commonTypeId" id="type" class="required">
					<c:forEach items="${requestScope.merchantCommonTypes }" var="merchantCommonType">
						<option value="${merchantCommonType.commonTypeId }">${merchantCommonType.typeName }</option>
					</c:forEach>
				</select>
			</p>
			<div class="unit">
				<label>图片：</label>
					<div class="upload-wrap">
						<input type="file" name="file" accept="image/*" class="valid" style="left: 0px;">
						<!-- <div class="thumbnail">
							<img src="themes/default/images/wx.png" style="max-width: 80px; max-height: 80px">
							<a class="del-icon" href="demo/common/ajaxDone.html"></a>
						</div> -->
					</div>
			</div>
		</div>
		<div class="formBar">
			<ul>
				<!--<li><a class="buttonActive" href="javascript:;"><span>保存</span></a></li>-->
				<li><div class="buttonActive">
						<div class="buttonContent">
							<button type="submit">保存</button>
						</div>
					</div></li>
				<li>
					<div class="button">
						<div class="buttonContent">
							<button type="button" class="close">取消</button>
						</div>
					</div>
				</li>
			</ul>
		</div>
	</form>
</div>
